/**
 * Created by chenhm on 12/04/2017.
 */
module.exports = {
    entry:  {
        main:__dirname + '/static/src/js/main.js'
    },
    output: {
        path: __dirname + "/static/build",//打包后的文件存放的地方
        filename: "[name].js"//打包后输出文件的文件名
    },
    watch: true,
    module: {
        loaders: [
            {
                test: /\.jsx?$/,
                exclude: /(node_modules|bower_components)/,
                loader: 'babel-loader', // 'babel-loader' is also a legal name to reference
                query: {
                    presets: ['es2015']
                }
            }
        ]
    }
};